<template>
  <avue-crud :option="option"
             :data="data"
             v-model:search="search">
    <template #age-search="{disabled,size}">
      <el-slider :disabled="disabled"
                 :size="size"
                 v-model="search.age"></el-slider>
    </template>
  </avue-crud>
</template>
<script>
export default {
  data () {
    return {
      search: {},
      data: [{
        name: '张三',
        age: 18,
      }],
      option: {
        column: [{
          label: '姓名',
          prop: 'name',
          search: true,
        }, {
          label: '年龄',
          prop: 'age',
          search: true,
        }]
      }
    }
  }
}
</script>